package com.example.service.impl;

import com.example.entity.Person;
import com.example.mapper.PersonMapper;
import com.example.mapper.MyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MyRepositoryImpl implements MyRepository {
    @Autowired
    private PersonMapper personMapper;

    @Override
    public void save(String data) {
        Person person = new Person();
        person.setName(data);
        personMapper.insert(person);
    }
}
